package com.dragon.dragonshop.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/user/order")
public class UserOrderController {

    @GetMapping("/order.html")
    public String showUserOrders(HttpSession session){
        Object user = session.getAttribute("user");
        return "order";
    }
}
